<template>
  <div class="home-container" ref="pronbit">
    <navLink :language="language" @languageClick="languageClick" :acitve="4"></navLink>
    <!-- 库存 -->
    <div class="title">
      <p class="title_word"> {{ language == 'EN' ? ' Inventory products ' : '库存产品' }}</p>
      <p class="title_line"> </p>
      <p class="title_line_next">{{ language == 'EN' ? ' spot stocks ' : '现货库存' }}</p>
    </div>
    <div class="stock w">
      <div class="stock-content-left">
        <table class="w  stokc-table">
          <thead>
            <tr>
              <th>Part number</th>
              <th>Brand</th>
              <th>Quantity</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td>AD8656ARZ-REEL7</td>
              <td> DI</td>
              <td>2000</td>
            </tr>
            <tr>
              <td>AD7997BRUZ-0</td>
              <td>ADI</td>
              <td>3550</td>
            </tr>
            <tr>
              <td>LT1167ACS8#TRPBF</td>
              <td>ADI</td>
              <td>4000</td>
            </tr>
            <tr>
              <td>LTC7001EMSE#TRPBF</td>
              <td>ADI</td>
              <td>6000</td>
            </tr>
            <tr>
              <td>AD8038AR</td>
              <td>ADI</td>
              <td>2000</td>
            </tr>
            <tr>
              <td>AD8091ARTZ-R7</td>
              <td>ADI</td>
              <td>2361</td>
            </tr>
            <tr>
              <td>ADM3202ARUZ-REEL</td>
              <td>ADI</td>
              <td>2000</td>
            </tr>
            <tr>
              <td>ADA4891-2ARZ</td>
              <td>ADI</td>
              <td>2000</td>
            </tr>
            <tr>
              <td>AD570JD</td>
              <td> AD</td>
              <td>2000</td>
            </tr>
            <tr>
              <td>DAC8043GPZ</td>
              <td> ADI</td>
              <td>3550</td>
            </tr>
            <tr>
              <td>AM29F040B-70JI</td>
              <td> AMD</td>
              <td>2000</td>
            </tr>
            <tr>
              <td>AM29SL800DB-100WAFT</td>
              <td>AMD</td>
              <td>2000</td>
            </tr>
            <tr>
              <td>HDSM-431B</td>
              <td> AVAGO</td>
              <td>4660</td>
            </tr>
            <tr>
              <td>ACPL-C87B-000E</td>
              <td> AVAGO</td>
              <td>2000</td>
            </tr>
            <tr>
              <td>ACPL-064L-560E</td>
              <td> AVAGO</td>
              <td>2000</td>
            </tr>
            <tr>
              <td>LM4040C30FTA</td>
              <td> DIODES</td>
              <td>2000</td>
            </tr>
            <tr>
              <td>SMAJ13CA-13-F</td>
              <td> DIODES</td>
              <td>2000</td>
            </tr>
            <tr>
              <td>PAM2401YPADJ</td>
              <td> DIODES</td>
              <td>7800</td>
            </tr>
            <tr>
              <td>LM4040C30FTA</td>
              <td> DIODES</td>
              <td>2000</td>
            </tr>
            <tr>
              <td>FQU2N100TU</td>
              <td> FAIRCHILD</td>
              <td>2000</td>
            </tr>
            <tr>
              <td>FSL336LRN</td>
              <td> FAIRCHILD</td>
              <td>2000</td>
            </tr>
            <tr>
              <td>MAX14870ETC+T</td>
              <td> MAXIM</td>
              <td>3216</td>
            </tr>
          </tbody>
        </table>
      </div>
      <div class="stock-content-right">
        <table class="w  stokc-table">
          <thead>
            <tr>
              <th>Part number</th>
              <th>Brand</th>
              <th>Quantity</th>
            </tr>
          </thead>
          <tbody>

            <tr>
              <td>MAX5815BAUD+</td>
              <td> MAXIM</td>
              <td>2300</td>
            </tr>
            <tr>
              <td>MAX233EPP+G36</td>
              <td> MAXIM</td>
              <td>2315</td>
            </tr>
            <tr>
              <td>MAX485CSA+T</td>
              <td> MAXIM</td>
              <td>2000</td>
            </tr>
            <tr>
              <td>MAX3362EKA+T</td>
              <td> MAXIM</td>
              <td>2000</td>
            </tr>
            <tr>
              <td>MAX1138EEE+T</td>
              <td> MAXIM</td>
              <td>3185</td>
            </tr>
            <tr>
              <td>ICM7555IPA+</td>
              <td> MAXIM</td>
              <td>2000</td>
            </tr>
            <tr>
              <td>MAX485CSA+T</td>
              <td> MAXIM</td>
              <td>2000</td>
            </tr>
            <tr>
              <td>74ALVC164245DGG</td>
              <td> NEXPERIA</td>
              <td>2000</td>
            </tr>
            <tr>
              <td>PUMD2</td>
              <td> Nexperia</td>
              <td>3120</td>
            </tr>
            <tr>
              <td>2N7002PS</td>
              <td> NEXPERIA</td>
              <td>4120</td>
            </tr>
            <tr>
              <td>HEF4094BT</td>
              <td> NEXPERIA</td>
              <td>2000</td>
            </tr>
            <tr>
              <td>BCX55-16,115</td>
              <td> NEXPERIA</td>
              <td>2000</td>
            </tr>
            <tr>
              <td>MBRS340T3G</td>
              <td> ON</td>
              <td>2000</td>
            </tr>
            <tr>
              <td>TL431BIDR2G</td>
              <td> ON</td>
              <td>2000</td>
            </tr>
            <tr>
              <td>MBRS340T3G</td>
              <td> ON</td>
              <td>2000</td>
            </tr>
            <tr>
              <td>BSP19AT1G</td>
              <td> ON</td>
              <td>2000</td>
            </tr>
            <tr>
              <td>MC74VHC1G14DBVT1G</td>
              <td> ON</td>
              <td>7366</td>
            </tr>
            <tr>
              <td>MM3Z3V9ST1G</td>
              <td> ON</td>
              <td>2000</td>
            </tr>
            <tr>
              <td>NDT2955</td>
              <td> ON</td>
              <td>2000</td>
            </tr>
            <tr>
              <td>NSVRB751V40T1G</td>
              <td> ON</td>
              <td>2411</td>
            </tr>
            <tr>
              <td>NTD3055L104T4G</td>
              <td> ON</td>
              <td>2000</td>
            </tr>
            <tr>
              <td>MOCD207M</td>
              <td> ON</td>
              <td>3256</td>
            </tr>

          </tbody>
        </table>
      </div>
    </div>
    <pageFooter></pageFooter>
  </div>
</template>

<script>
import { mapState } from "vuex";
import pageFooter from "../../components/pageFooter.vue";
import navLink from "../../components/navLink.vue";

export default {
  components: { pageFooter, navLink },
  methods: {
    languageClick(type) {
      this.$store.commit('changeLanguage', type)
    }
  },
  computed: {
    ...mapState(["keyWord", 'language']),
  },
}

</script>

<style lang="scss" scoped>
html body {
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: 'iconfont';
  src: url('../../static/font/iconfont.woff2?t=1708347338261') format('woff2'),
    url('../../static/font/iconfont.woff?t=1708347338261') format('woff'),
    url('../../static/font/iconfont.ttf?t=1708347338261') format('truetype');
}


.w {
  width: 1380px;
  margin: 0 auto;
}

ul li {
  list-style: none;
}

.home-container {
  background-color: #ffffff;
  width: 100%;
  padding-top: 110px;
  box-sizing: border-box;
  font-family: "Outfit", Sans-serif;


  .title {
    width: 460px;
    height: 40px;
    font-family: Poppins;
    font-weight: 700;
    font-size: 40px;
    text-align: center;
    padding-top: 40px;
    box-sizing: border-box;
    margin: 0 auto;
    position: relative;

    .title_word {
      width: 460px;
      position: absolute;
      color: #171324;
      left: 0;
      top: 41;
      z-index: 999;
    }

    .title_line {
      position: absolute;
      width: 110px;
      height: 11px;
      background: #3f94f0;

      font-size: 18px;

      left: 50%;
      bottom: -46px;
      transform: translateX(-50%);
      border-radius: 2px;

    }

    .title_line_next {
      position: absolute;
      width: 370px;
      height: 11px;

      color: #666666;
      font-family: Poppins;
      font-size: 18px;
      font-weight: 400;

      left: 43px;
      bottom: -70px;

    }

  }




  .stock {
    display: flex;
    width: 1380px;
    margin: 75px auto 50px;

    //  border: 1px solid;
    .stock-content-left {

      margin-left: 50px;
      margin-right: 5px;
    }

    .stock-content-right {

      margin-left: 5px;
      margin-right: 50px;
    }


    table {
      width: 650px;
      border-collapse: collapse;
      margin-top: 20px;
    }

    th,
    td {
      // border: 1px solid black;
      // padding: 3px;
      // text-align: center;
      width: 132px;
      height:52px;
      font-family: PingFang SC;
      color: #35404e;
      font-size: 14px;
      text-align: center;
    }

    th {

      background: linear-gradient(90deg, #3f94f0 0%, #9dcbfd 100%);
    }



    table tr:nth-child(odd) td {
      background-color: #ffffff;
    }

  
    table tr:nth-child(even) td {
      background-color: #f0f7ff;
    }

  }
}
</style>

<style lang="scss">
.banner {
  .swiper-pagination-bullet {
    width: 16px;
    height: 16px;
    background-color: #fcbc06;
    opacity: 0.5;
    transform: scale(1);
  }

  .swiper-pagination-bullet-active {
    width: 40px;
    border-radius: 5px;
    opacity: 1;
  }

  .swiper-container-horizontal>.swiper-pagination-bullets {
    bottom: 50px;
  }
}
</style>